package com.ruoyi.sale.service.impl;

import com.ruoyi.sale.domain.OutboundModel;
import com.ruoyi.sale.domain.OutboundOrder;
import com.ruoyi.sale.domain.SaleGoodsModel;
import com.ruoyi.sale.domain.SaleGoodsOrder;
import com.ruoyi.sale.mapper.OutboundMapper;
import com.ruoyi.sale.service.IOutboundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * @author WangChangShuo
 * @date 2022年06月06日 14:22
 */
@Service
public class OutboundServiceImpl implements IOutboundService {

    @Autowired
    OutboundMapper outboundMapper;

    @Override
    public List<OutboundOrder> selectOutboundBySaleGoodsId(Long saleGoodsId) {
        return outboundMapper.selectOutboundBySaleGoodsId(saleGoodsId);
    }

    @Override
    public OutboundOrder selectOutboundById(Long outboundId) {
        return outboundMapper.selectOutboundById(outboundId);
    }

    @Override
    public int insertOutboundOrder(OutboundOrder outboundOrder) {
        return outboundMapper.insertOutboundOrder(outboundOrder);
    }

    @Override
    public int insertOutboundModel(OutboundModel outboundModel) {
        return outboundMapper.insertOutboundModel(outboundModel);
    }

    @Override
    public SaleGoodsOrder selectSaleGoodsByOutboundId(HashMap<String, Object> hashMap) {
        return outboundMapper.selectSaleGoodsByOutboundId(hashMap);
    }

    @Override
    public SaleGoodsModel selectSaleGoodsByOutboundIds(HashMap<String, Object> hashMap) {
        return outboundMapper.selectSaleGoodsByOutboundIds(hashMap);
    }

    @Override
    public OutboundModel selectOutboundModel(OutboundModel outboundModel) {
        return outboundMapper.selectOutboundModel(outboundModel);
    }

    @Override
    public List<OutboundOrder> selectOutboundList(Long saleGoodsId) {
        return outboundMapper.selectOutboundList(saleGoodsId);
    }
    @Override
    public SaleGoodsOrder selectSaleGoodsByOutboundIdes(HashMap<String, Object> hashMap) {
        return outboundMapper.selectSaleGoodsByOutboundIdes(hashMap);
    }
}
